/* Copyright (c) 2009 MyCompany.com
   See the file LICENSE.txt for licensing information. */

Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");

/***********************************************************
 *              XPCOM class definition                     *
 ***********************************************************/

// Class constructor.
function BetInfo() {
  // If you only need to access your component from Javascript, uncomment the
  // following line:
  this.wrappedJSObject = this;
}

// Class definition.
BetInfo.prototype = {

  // properties required for XPCOM registration:
  classDescription: "BetInfo XPCOM Component",

  classID: Components.ID("{f469a321-6353-4663-b222-d30444c3540e}"),
  contractID: "@foxmount.com/BetInfo;1",

  // QueryInterface implementation, e.g. using the generateQI helper (remove argument if skipped steps above)
  QueryInterface: XPCOMUtils.generateQI([Components.interfaces.nsIBetInfo]),

  getInfo: function() {
    return "aa World!";
  }

};

// XPCOM registration of class.
var components = [BetInfo];
function NSGetModule(compMgr, fileSpec) {
  return XPCOMUtils.generateModule(components);
}